package com.jkoss.wine.shopOrder.service.impl;

import com.jkoss.wine.shopOrder.entity.Orders;
import com.jkoss.wine.shopOrder.mapper.OrdersMapper;
import com.jkoss.wine.shopOrder.service.IOrdersService;
import com.baomidou.mybatisplus.mapper.SqlHelper;
import com.baomidou.mybatisplus.mapper.Wrapper;
import com.baomidou.mybatisplus.plugins.Page;
import com.baomidou.mybatisplus.service.impl.ServiceImpl;
import org.springframework.stereotype.Service;

/**
 * 服务实现类
 * 
 * @Author Jason
 * @Version 1.0, 2018-10-14
 * @See
 * @Since com.jkoss.wine.shopOrder.service.impl
 * @Description: TODO
 */
@Service
public class OrdersServiceImpl extends ServiceImpl<OrdersMapper, Orders> implements IOrdersService {

	@Override
	public Page selectVoByPage(Page page, Wrapper wrapper) {
		SqlHelper.fillWrapper(page, wrapper);
		page.setRecords(baseMapper.selectVoByPage(page, wrapper));
		return page;
	}

}
